package cn.xueden.system.converter;

import cn.xueden.system.model.entity.Notice;
import cn.xueden.system.model.form.NoticeForm;
import org.mapstruct.Mapper;
import org.springframework.stereotype.Component;

/**功能描述：公告转换器
 * @author:梁志杰
 * @date:2025/6/10
 * @description:cn.xueden.system.converter
 * @version:1.0
 */
@Component
@Mapper(componentModel = "spring")
public interface NoticeConverter {

    /**
     * 新增表单转实体类
     * @param noticeForm
     * @return
     */
    Notice fromToEntity(NoticeForm noticeForm);
}
